home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / eventinit.z / eventinit
Encoding:
Text File  |  1998-10-30  |  5.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt((((3333TTTTkkkk))))                                            TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_EventInit - Use the Tk event loop without the rest of Tk
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  13.  
  14.      int
  15.      TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt(_i_n_t_e_r_p)
  16.  
  17. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  18.      Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter in which event-related Tk
  19.                                       commands are to be created.
  20.  
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      This procedure may be invoked to use the Tk event management functions
  24.      without the rest of Tk (e.g., in applications that do not have access to
  25.      a display).  TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt creates the aaaafffftttteeeerrrr and ffffiiiilllleeeeeeeevvvveeeennnntttt commands in
  26.      _i_n_t_e_r_p.  It also creates versions of the ttttkkkkwwwwaaaaiiiitttt and uuuuppppddddaaaatttteeee commands with
  27.      reduced functionality:  the ttttkkkkwwwwaaaaiiiitttt command supports only the vvvvaaaarrrriiiiaaaabbbblllleeee
  28.      option, not vvvviiiissssiiiibbbbiiiilllliiiittttyyyy or wwwwiiiinnnnddddoooowwww, and uuuuppppddddaaaatttteeee does not check for X events.
  29.      TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt always returns TTTTCCCCLLLL____OOOOKKKK to signal that it completed
  30.      successfully.
  31.  
  32.      The event-management procedures in Tk are divided into two groups, those
  33.      that can be used stand-alone and those that require the full Tk library
  34.      to be present.  The following procedures may be used stand-alone:
  35.      TTTTkkkk____CCCCrrrreeeeaaaatttteeeeFFFFiiiilllleeeeHHHHaaaannnnddddlllleeeerrrr, TTTTkkkk____CCCCrrrreeeeaaaatttteeeeFFFFiiiilllleeeeHHHHaaaannnnddddlllleeeerrrr2222, TTTTkkkk____DDDDeeeelllleeeetttteeeeFFFFiiiilllleeeeHHHHaaaannnnddddlllleeeerrrr,
  36.      TTTTkkkk____CCCCrrrreeeeaaaatttteeeeTTTTiiiimmmmeeeerrrrHHHHaaaannnnddddlllleeeerrrr, TTTTkkkk____DDDDeeeelllleeeetttteeeeTTTTiiiimmmmeeeerrrrHHHHaaaannnnddddlllleeeerrrr, TTTTkkkk____DDDDooooWWWWhhhheeeennnnIIIIddddlllleeee,
  37.      TTTTkkkk____CCCCaaaannnncccceeeellllIIIIddddlllleeeeCCCCaaaallllllll, TTTTkkkk____DDDDooooOOOOnnnneeeeEEEEvvvveeeennnntttt, TTTTkkkk____SSSSlllleeeeeeeepppp, and TTTTkkkk____BBBBaaaacccckkkkggggrrrroooouuuunnnnddddEEEErrrrrrrroooorrrr.  Note
  38.      that TTTTkkkk____MMMMaaaaiiiinnnnLLLLoooooooopppp cannot be used without the full Tk library, since it
  39.      checks to see if windows are still open.  If an application uses the
  40.      event procedures stand-alone, it must include its own main loop that
  41.      invokes TTTTkkkk____DDDDooooOOOOnnnneeeeEEEEvvvveeeennnntttt repeatedly.
  42.  
  43.      TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt is typically called from an application's TTTTccccllll____AAAAppppppppIIIInnnniiiitttt
  44.      procedure;  it should not be invoked in applications that use the full Tk
  45.      library (e.g., those that have already invoked TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww).
  46.      However, it is OK for an application to start up using TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt,
  47.      compute without X for a while, and later invoke TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww.
  48.      When TTTTkkkk____CCCCrrrreeeeaaaatttteeeeMMMMaaaaiiiinnnnWWWWiiiinnnnddddoooowwww is invoked, the full suite of windowing Tcl
  49.      commands will become available, and the full-blown versions of ttttkkkkwwwwaaaaiiiitttt and
  50.      uuuuppppddddaaaatttteeee will replace the abridged versions created with TTTTkkkk____EEEEvvvveeeennnnttttIIIInnnniiiitttt.
  51.  
  52.  
  53. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  54.      event management, Tcl_AppInit
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.